package com.jblv.frame.common.utils;

import java.util.UUID;

/**
 * @author happyonion.yangtao
 * @version 1.0
 * @title UUIDGenerator
 * @projectName jblv-frame
 * @packageName com.jblv.common.utils
 * @description UUIDGenerator
 * @date Create at 2020/4/21 22:21
 * @since jdk1.8
 */
public class UUIDGenerator {
    public static String getUUID() {
        String s = UUID.randomUUID().toString();
        return s.substring(0, 8) + s.substring(9, 13) + s.substring(14, 18) + s.substring(19, 23) + s.substring(24);
    }

    public static void main(String[] args) {
        System.out.println(getUUID());
    }
}
